package com.study.talk.module.service;

import com.study.talk.module.entity.GroupInfo;
import com.study.talk.module.entity.Message;
import com.study.talk.module.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.study.talk.module.entity.UserInfo;
import com.study.talk.module.netty.message.TalkMessage;
import io.netty.channel.Channel;

import java.util.*;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author thor
 * @since 2023-12-18
 */
public interface UserService extends IService<User> {
    boolean checkChannelAndCacheMessage(Integer userId, Channel channel, TalkMessage msg);

    void sendCacheMessage(Integer userId,Channel channel);

    void sendMessage(Integer userId,TalkMessage message);

    public void sendAllMessage(Integer userId,Channel channel);

    List<Message> getAllMessage(Integer userId);



}
